/*
 * @Descripttion: 
 * @version: 
 * @Author: lsy
 * @Date: 2021-12-08 08:58:49
 * @LastEditors: lsy
 * @LastEditTime: 2021-12-09 14:26:54
 */
import Vue from 'vue'
import App from '@/App.vue'
import router from '@/router'

import axios from '@/plugins/axios.js'
Vue.use(axios, { router, opt: "VE_API" })

import VueI18n from 'vue-i18n'        //引入vue-i18n
Vue.use(VueI18n);    //通过插件的形式挂载
//注册i8n实例并引入语言文件
const i18n = new VueI18n({
  locale: 'zh',		//默认显示的语言 可以使用sessionStorage.getItem('lang') || 'zh',
  messages: {
    'zh': {},	//索引语言文件
    'en': {}
  },
  silentTranslationWarn: true		//禁止打印警告信息
})

import "@/plugins/antd.js"

Vue.config.productionTip = false

new Vue({
  router,
  i18n,
  render: h => h(App)
}).$mount('#app')
